package org.dromara.netbar.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import org.dromara.netbar.domain.NetbarMember;
import org.dromara.netbar.domain.vo.NetbarMemberBalanceVo;
import org.dromara.netbar.domain.vo.NetbarMemberVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;
import java.util.Map;

/**
 * 会员信息管理Mapper接口
 *
 * @author Lion Li
 * @date 2025-06-29
 */
public interface NetbarMemberMapper extends BaseMapperPlus<NetbarMember, NetbarMemberVo> {

    Map<Long, Integer> queryCountMapByMemberLevelIds(Long[] levelIds);

    @InterceptorIgnore(tenantLine = "true")  // 忽略多租户拦截
    List<NetbarMemberBalanceVo> selectMemberBalance(List<Long> memberIdList);
}
